import request from '@/utils/request'

// 查询产品MAC地址规则列表
export function listProductMacRule(query) {
  return request({
    url: '/produce/product-mac-rule/list',
    method: 'get',
    params: query
  })
}

// 查询产品MAC地址规则详细
export function getProductMacRule(id) {
  return request({
    url: '/produce/product-mac-rule/' + id,
    method: 'get'
  })
}

// 新增产品MAC地址规则
export function addProductMacRule(data) {
  return request({
    url: '/produce/product-mac-rule',
    method: 'post',
    data: data
  })
}

// 修改产品MAC地址规则
export function updateProductMacRule(data) {
  return request({
    url: '/produce/product-mac-rule',
    method: 'put',
    data: data
  })
}

// 删除产品MAC地址规则
export function delProductMacRule(id) {
  return request({
    url: '/produce/product-mac-rule/' + id,
    method: 'delete'
  })
}

// 逻辑删除产品MAC地址规则
export function removedProductMacRule(id) {
  return request({
    url: '/produce/product-mac-rule/' + id,
    method: 'delete'
  })
}
